package com.zhy.springcloud.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhy.springcloud.enetities.CommonResult;

/**
 * @Author zhy
 * @Description
 * @ClassName CustomerBlockHandler
 * @Date 2020/12/25 17:09
 **/

public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(4444,"按客户自定义"+"\n"+"服务不可用");
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444,"按客户自定义2"+"\n"+"服务不可用");
    }

}
